package com.xiang.springcloud.dao;
import com.xiang.springcloud.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DeptDao {

    //增加
    public boolean addDept(Dept dept);
    //通过id查询
    public Dept queryDeptById(Long id);
    //查询全部
    public List<Dept> queryAll();
}
